/**
 * 
 */
package com.jushu.storbox.service;

import java.util.List;

import com.jushu.storbox.entities.FileInfo;
import com.huawei.sharedrive.sdk.android.modelV2.response.FileInfoResponseV2;

public interface ILocalShareFileService extends ILocalService{
	/**
	 * @param fileInfo
	 * @param context
	 */
	public long insertFile(FileInfoResponseV2 fileInfo);

	/**
	 * @param fileInfo
	 */
	public void updateFile(FileInfoResponseV2 fileInfoResponse);

	/**
	 * @param fileInfo
	 */
	public void updateFile(FileInfo fileInfo);

	/**
	 * @param fileInfo
	 */
	public void inserOrUpdateFile(FileInfoResponseV2 fileInfo);

	/**
	 * @param folderId
	 * @return
	 */
	public List<FileInfo> getFileList(String folderId,String ownerBy);

	/**
	 * @param fileId
	 * @return
	 */
	public FileInfo getFileById(String fileId ,String ownerBy);

	/**
	 * @param id
	 */
	public void deleteFile(String fileID,String ownerBy);

	/**
	 * @param name
	 * @param fileID
	 */
	public void renameFile(String name,String fileId,String filePath);

	/**
	 * @param context
	 * @param parentID
	 * @param FolderID
	 */
	public void moveFile(String parentID, String folderID);

	/**
	 * @param folderId
	 * @param folderName
	 */
	public void syncFile(String fileId,String fileName);
	
	/**
	 * @param folderId
	 * @param folderName
	 */
	public void cancelSyncFile(String fileId, String fileName,String ownerBy);
	
	/**
	 * 
	 * @param fileId
	 * @param localPath
	 */
	public void updateLocalPath(String fileId, String localPath,String ownerBy);

	/**
	 * 
	 * @param status
	 * @param fileId
	 */
	public void updateTransStatus(String ownerId, int status, String fileId);

	/**
	 * 
	 * @param syncStatus
	 * @param fileId
	 */
	public void updateSyncStatus(String ownerId, int syncStatus, String fileId);
	

	/**
	 * 
	 * @param fileId
	 */
	public FileInfo selectShareFile(String fileId,String ownerId);

	
}
